package ar.edu.uba.fi.jmit.integrationcommons;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;
/**
 * Es un evento que se quiere mandar desde el emisor hacia el receptor.
 * @author Tomas.
 *
 */
public class Event implements Serializable {
	
	private static final long serialVersionUID = 7892852951302633865L;

	private Map<String, Serializable> data;
	
	private EventPriority priority;
	
	private String source;
	
	public Event() {
		super();
		this.data= new HashMap<String, Serializable>();
	}
	
	public void addData(String paramName, Serializable paramValue) {
		getData().put(paramName, paramValue);
	}

	public Map<String, Serializable> getData() {
		return data;
	}

	public void setData(Map<String, Serializable> data) {
		this.data = data;
	}

	public EventPriority getPriority() {
		return priority;
	}

	public void setPriority(EventPriority priority) {
		this.priority = priority;
	}

	public String getSource() {
		return source;
	}

	public void setSource(String source) {
		this.source = source;
	}
	

}
